#define _CRT_SECURE_NO_WARNINGS
#include"vector.h"
namespace test1
{
	void test01()
	{
		vector<int> v1;
		v1.push_back(1);
		v1.push_back(2);
		v1.push_back(3);
		v1.push_back(4);
		v1.push_back(5);
		v1.push_back(6);
		v1.push_back(7);
		vector<int> v2 = { 1,1,1,1,1,11 };
		for (size_t i = 0; i < v1.size(); i++)
		{
			cout << v1[i] << " ";
		}
		cout << endl;
		v1.insert(v1.begin(), 1);
		vector<int>::iterator t1 = v1.begin();
		while (t1 != v1.end())
		{
			cout << *t1 << " ";
			t1++;
		}
		
		cout << endl;
		v1.erase(v1.begin());
		v1.assign(10, 2);
		for (auto ch : v1)
		{
			cout << ch << " ";
		}
		cout << endl;


	}
	void test()
	{
		int** arr = (int**)malloc(sizeof(int*) * 10);
		for (int i = 0; i < 10; i++)
		{
			arr[i] = (int*)malloc(sizeof(int));
		}
	}
}
int main()
{
	test1::test01();
	return 0;
}